package com.example.netcomponent.net;

/**
 * Created by zengxianghui900 on 17/10/6.
 */
public interface AppConstant {

    String TINKER_APP_ID = "6c73cac2ed";
    String TYPE_WORK = "作业";
    String TYPE_ASSISTANT = "助手";
    String TYPE_ANNOUNCE = "公告";
    String TYPE_ME = "我";
    String MY_CARD ="我的名片";
    String WEB_URL = "webUrl";
    String IS_CAN_GO_BACK = "isCanGoBack";
    String APP_ID = "616e64726f69642d636f6d2e70696e67616e2e636c61696d707074";

    //TODO:测试环境
//    String APP_BASE_URL_HEAD = "http://test1-icore-cmss.pingan.com.cn/";

    //TODO:生产环境
    String APP_BASE_URL_HEAD = "https://icore-cmss.pingan.com.cn/";



    interface Login{
        String FACE_LOGIN_TYPE = "faceLoginType";
        String LOGIN_TYPE_UM = "um";
        String LOGIN_TYPE_GESTURE = "gesture";
        String LOGIN_TYPE_FACE = "Face";
        String USER_SOURCE = "eClaimPPT";
        String IS_COLLECTED_FACE = "1";
        String NOT_COLLECTED_FACE = "0";
        String IS_SETTING_GESTURE = "1";
        String TOKEN_FAILED = "tokenFailed";
        String IS_GESTURED = "isGestured";
        String GESTURE_LOGIN = "gestureLogin";
        String GESTURE_UPDATE = "gestureUpdate";
        String GESTURE_SETTING = "gestureSetting";
        String GESTURE_TYPE = "gestureType";
        String GESTURE_TYPE_VERIFY = "verify";
        String GESTURE_TYPE_LOGIN = "login";
        String GESTURE_UPDATE_TYPE_GESTURE = "gesture";
        String GESTURE_UPDATE_TYPE_FACE = "face";
        String GESTURE_UPDATE_VERIFY = "gestureUpdateVerify";
        //安卓操作系统
        String OS_ANDROID = "a";

        //TODO :开发环境：
//        String CASE_APP_ID = "8a94968f5fe6c18d016007246f970015";        //开发环境的
//        String PUBLIC_X="9D18DCF9A4C04E12FFFF68A5A43AE321D56E2E693B4DBAB6CBE263EA156B81B9";
//        String PUBLIC_Y="68864B894038382F7649B088733CB9F4DE322953CC81C58FC76F28BC96D43AE7";

        //TODO:生产环境
        String CASE_APP_ID = "9e90f8495fc55cc5016091e44dfd0006";      //生产环境的
        String PUBLIC_X = "CE334A29C0FDF7810D4BBB1C9917E54719E53394F947AC8B525CCDEFDDA44810";
        String PUBLIC_Y = "649E2A9651401CC3251BCEDAD42CE1506841A7A31D3EE3DEADDE65D769BA4458";


        //TODO:测试环境地址
//        String CASE_APP_ID = "9e84d8e15fc469a30160072568190016";        //测试环境的
//        String PUBLIC_X = "9D18DCF9A4C04E12FFFF68A5A43AE321D56E2E693B4DBAB6CBE263EA156B81B9";
//        String PUBLIC_Y = "68864B894038382F7649B088733CB9F4DE322953CC81C58FC76F28BC96D43AE7";

    }

    interface Camera {
        String NO_SD_CARD = "检查不到内存卡，请您插入内存卡！";
        String OPEN_CAMERA_ERROR = "打开相机出错";
        String RESTART_PHONE = "相机打开失败，请重启手机!";
        String NO_SUPPORT_ZOOM = "该设备不支持焦距缩放";
        int CAMERA_BACK = 0;
        int CAMERA_FRONT = 1;
        String RECORD_SHORT = "视频录制时间太短,请重新录制";
        String RECORD_ERROR = "视频录" +
                "制失败,请重试";
        String TYPE_VIDEO = "video/*";
        String TYPE_PICTURE = "image/*";
//        String VIDEO_PATH = "videoPath";
//        String PICTURE_PATH = "picturePath";
        String JPG_SUFFIX = ".jpg";
        String MP4_SUFFIX = ".mp4";
        String PNG_SUFFIX = ".png";
        String JPEG_SUFFIX = ".jpeg";

        String PIC_BITMAP="picBitmap";
        String FILE_PATH = "filePath";

        String OFFLIEN_CAPTURE = "offlineCapture";

        String PIC_VIDEO_POSITION = "pic_video_position";
        String PIC_VIDEO_DATA = "pic_video_data";

        String FROM_PIC_ALBUM = "from_pic_album";
        String DELETE_PIC_VIDEO = "delete_pic_video";
        String UPLOADED = "1";      //已上传
        String NO_UPLOADED = "0";   //未上传

        String SHOW_PIC_URL = "picUrl";
        String SHOW_PIC_TYPE = "picType";
        String TYPE_ATTACH = "typeAttach";
        String TYPE_ATTACH_PDF = "typeAttachPdf";

        String UPLOAD_FAILED = "上传失败";
        String CLASSIFY_NOUPLOAD_TITLE = "已分类(无需选择左侧单证再分类)";
        //TODO 默认为15分钟，后期可修改，调整2分钟，方便测试
        long UPLOAD_INTERNAL_TIME = 15 * 60 * 1000;


    }

    /**上传人类型 01：平安人员 02：客户*/
    interface UploadPersonType{
        String TYPE_OWNER="01";
        String TYPE_CUSTOMER="02";
    }

    /**上传来源01：财产理赔 02：E理赔 03：PA18官网 04：HTML5 05：微信*/
    interface UploadSource{
        String SOURCE_CLAIMPPT = "01";
    }

    interface SpKey {
        String APP_SP = "claimppt_sp";
        String USER_ID = "userId";
        String QRCODE_URL= "qrcode_url";
        String TOKEN = "token";
        String COLLECTED_FACE_PIC = "collected_face_pic";
        String GESTURED = "gestured";
        String MSG_NUM = "msgNum";
        String VIDEO_USER_ID = "videoUserId";
    }

    interface IntentKey{
        int REQUEST_SHOW_PIC_VIDEO = 1000;
        int RESULT_DELTE_PIC_VIDEO = 1001;
        int REQUEST_REFRESH_TOKEN = 1002;
        int RESULT_REFRESH_TOKEN_OK = 1003;
        int REQUEST_PAY_INFO = 1004;
        int RESULT_PAY_INFO_PIC = 1005;
        int REQUEST_SURVEY_REPORT = 1006;
        int RESULT_SURVEY_REPORT = 1007;
        int REQUEST_INSTALL_APK = 1008;
        int REQUEST_PEND_MANAGE = 1009;
        int REQUEST_GESTURE_VERIFY = 1010;
        int RESULT_GESTURE_VERIFY_OK = 1011;
        int REQUEST_PIC_BRIGHTNESS = 1012;
        int RESULT_PIC_BRIGHTNESS_EDIT_OK = 1013;
        int REQUEST_MESSAGE_CENTER = 1014;
        int RESULT_MESSAGE_NUM_READ = 1015;
    }



    interface Survey{
        String REPORT_NO = "reportNo";
        String POLICY_NO = "policyNo";
        String CASE_NO = "caseNo";
        String CASE_TIMES = "caseTimes";
        String RELATION_ID = "relationId";
        String REPORT_DATA = "reportData";
        String TASK_NAME = "taskName";
        String DOCUMENT_ID = "documentId";
        String INSURANCE_NAME = "insuranceName";
        String ACCIENT_TIME = "accientTime";
        String FILE_ID = "fileId";
        String FILE_NAME = "fileName";
    }

    interface BaseData{
        String PROVINCE = "province";
        String CURRENT_PAY_BANK = "current_pay_bank";
        String NORMAL_PAY_BANK = "normal_pay_bank";
        String COUNTRIES = "countries";
    }
    interface EventBusTag{

        String UPLOADED = "uploaded";
        String UPLOAD_FAILED = "upload_failed";
    }

    interface Net {
        // 登录过期,要跳转到重新登录验证
        int REDIRECT = 302;
        // 请求成功
        int OK = 200;

        String NO_DATA = "请求数据失败";
        String CONNECT_FAIL = "网络连接失败，请检查您的网络状态";
        String SOCKET_TIMEOUT_FAIL = "网络请求失败,请检查您的网络状态";
        String OTHER_CONNECT_FAIL = "网络异常,请检查您的网络状态";
        String TOKEN_FAILED = "登录失效,请重新登录";
        String BUSY_NET_FAIL = "网络繁忙,请重试";
    }

    interface Certificate{

        String SCENE_PIC = "现场照片";
        String FAST_TABLE = "快速处理表";
        String SURVEY_RECORD = "查勘记录";
        String PAY_INFO = "支付信息";
        String THIRD_RECEIPT = "三者收条";
        String CLAIM_PAPER = "索赔申请书";
        String CLAIM_FORM = "索赔清单";
        String CLAIM_NOTICE = "索赔告知书";
        String DATA_LIST = "资料清单";
        String CLAIM_SUBMIT = "索赔交接单";
        String INSURANCE_ORDER = "保单";
        String CLAIM_REJECT = "拒赔通知书";
        String CLAIM_AGREEMENT = "赔付协议";
        String CLAIM_LOSS = "预赔协议";
        String OTHER = "其他";
    }
    interface Announce{
        String IMG_DETAIL_ID = "img_detail_id";
        String DETAIL_TITLE = "detail_title";
        String DETAIL_TIME = "detail_time";
    }
    interface File{
        String FILE_PATH = "filePath";
    }

    interface Payinfo{
        String PAY = "赔款";
        String BATCH_PAY = "批量收付";
        String CLIENT_TYPE ="领款人类型";
        String PAYMENT_INFO_TYPE ="支付类型";
        String COLLECT_PAY_APPROACH ="支付方式";
        String IS_FOREIGN_CURRENCY ="外币转账";
        String BANK_ACCOUNT_ATTRIBUTE ="账户性质";

        String PAY_TYPE_REPARATIONS ="P1";

        String CLIENT_TYPE_INSURANCE="01";

        String BANK_ACCOUNT_ATTRIBUTE_PERSON="1";

        //支付方式key值
        String COLLECT_PAY_APPROACH_COUNTER="01";
        String COLLECT_PAY_APPROACH_CURRENT="02";
        String COLLECT_PAY_APPROACH_BATCH="03";

        //是否外币转账key值
        String FOREIGN_CURRENCY_YES="1";
        String FOREIGN_CURRENCY_NO="0";

        //营业执照生效、失效日期
        String BUSINESS_LICENCE_BEGIN="business_begin";
        String BUSINESS_LICENCE_END="business_end";

        //个人证件生效、失效日期类型
        String PERSON_CERTIFICATE_START_VALIDITY="person_start";
        String PERSON_CERTIFICATE_END_VALIDITY="person_end";

        //控股股东证件生效、失效日期类型
        String CTRL_CREDIT_VALID_BEGIN="ctrl_begin";
        String CTRL_CREDIT_VALID_END="ctrl_end";

        //法人或控制人证件生效、失效日期类型
        String ARTIFICIAL_BEGIN="artificial_begin";
        String ARTIFICIAL_END="artificial_end";

        //授权办理人证件生效、失效日期类型
        String AUTHORIZER_VALID_BEGIN="authorizer_begin";
        String AUTHORIZER_VALID_END="authorizer_end";

        //证件类型
        String CERTIFICATE_PERSON = "person";
        String CERTIFICATE_CTRL_CREDIT = "ctrl_credit";
        String CERTIFICATE_ARTIFICIAL = "artificial";
        String CERTIFICATE_AUTHORIZER = "authorizer";

        String HISTORY_ITEM = "historyItem";
    }

    interface LiveVideo{
        String VIDEO_USER_ID = "userId";
        String CREATE_ROOM = "createRoom";
        String ROOM_INFO = "roomInfo";
        String USER_NAME = "userName";
        String LOGIN_INFO = "loginInfo";
    }
}
